package com.magic.zhixin.repository;

import com.magic.zhixin.entity.UserQuestion;
import com.magic.zhixin.model.QuestionStatus;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserQuestionRepository extends JpaRepository<UserQuestion,Long>{
    List<UserQuestion> findByUserId(Long userId);

    UserQuestion findByIdIs(Long userQuestionId);

    UserQuestion findBySn(String sn);

    List<UserQuestion> findByUserIdAndQuestionStatus(Long userId, QuestionStatus success);
}
